package com.wxgo.dao;

import java.util.List;

import com.wxgo.common.model.User;
import com.wxgo.dao.base.BaseDao;

public class UserDao extends BaseDao {

	public User findByNameAndPwd(String account, String password) {
		return User.dao.findFirst("select * from user where account=? and password=?", account, password);
	}

	public User findById(Integer id) {
		return User.dao.findById(id);
	}

	public List<User> find(String sql) {
		return User.dao.find(sql);
	}

	public List<User> find(String sql, Object... paras) {
		return User.dao.find(sql, paras);
	}

}
